package cn.sxt.user.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.sxt.yxl.common.util.ConstatFinalUtil;
import cn.sxt.yxl.common.util.PageInfoUtil;
import cn.sxt.yxl.users.pojo.AAdmins;
import cn.sxt.yxl.users.service.IUsersService;

/**
 * 不需要登录的
 * @author 冯科举
 *
 */
@Controller
public class NoLoginController {
	@Resource
	private IUsersService usersService;
	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest req){
		ConstatFinalUtil.LOGGER.info("===adminsList==");
		Map<String,Object> condMap=new HashMap<String,Object>();
		PageInfoUtil pageInfoUtil=new PageInfoUtil();
		pageInfoUtil.setCurrentPage(2);
		List<AAdmins> adminsList=this.usersService.findCondListAdminsService(pageInfoUtil, condMap);
		
		req.setAttribute("adminsList", adminsList);
		return "/head/adminsList";
	}
}
